<tagLib name="lbase"/>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>微信公众平台管理系统</title>
        <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">
    <include file="Public:header" />
    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="__PUBLIC__/js/html5.js"></script>
    <![endif]-->
</head>

<!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
<!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
<!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
<!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> 
<body class="">
    <!--<![endif]-->

    <!--顶部菜单-->
<include file="Public:navbar" />

<!--左侧导航条-->
<include file="Public:nav" />

<!--右侧整体区域-->
<div class="content">
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="row-fluid">
                <!--右侧栏目区域start-->
                <div class="block">
                    <a class="block-heading" data-toggle="collapse">优惠券兑换</a>
                    <div class="block-body collapse in">

                        <div class="container-fluid" style="margin-top: 10px;">
                            <!--右侧栏目内容区域start-->
                            <div class="row">
                                <div class="span12">
                                    <div class="pull-left">
                                        <a href="{:U('/'.$module_name.'/duihuan')}" class="btn btn-primary">返回兑换其他优惠券</a>&nbsp;&nbsp;
                                    </div>
                                </div>
                                <!--右侧字段区域start-->
                                <div class="span12" style="margin-top:10px;">
                                    <form class="form-horizontal" method="post" action="{:U('/'.$module_name.'/duihuan_action')}">
                                        <fieldset>
                                            <div id="legend" class="">
                                                <legend class=""></legend>
                                            </div>
                                            <php>if(!empty($info) && $info['status'] == 0){</php>
                                            <div id="legend" class="">
                                                <legend class="">兑换信息</legend>
                                            </div>
                                            <div class="control-group">
                                                <label class="control-label" for="input01">微信识别码</label>
                                                <div class="controls" style="margin-top: 5px;">
                                                    {$info.weixin_id}
                                                </div>
                                            </div>

                                            <div class="control-group">
                                                <label class="control-label" for="input01">领取时间</label>
                                                <div class="controls" style="margin-top: 5px;">
                                                    {:get_date_full($info['create_time'])}
                                                </div>
                                            </div>

                                            <div class="control-group">
                                                <label class="control-label" for="input01">优惠券兑换码</label>
                                                <div class="controls" style="margin-top: 5px;">
                                                    {$info.code}
                                                </div>
                                            </div>
                                            <div class="control-group">
                                                <label class="control-label" for="input01">兑换截止时间</label>
                                                <div class="controls" style="margin-top: 5px;">
                                                    {:get_date_full($info['exchange_stop_time'])}
                                                </div>
                                            </div>
                                            <div class="control-group">
                                                <label class="control-label" for="input01">兑换状态</label>
                                                <div class="controls" style="margin-top: 5px;">
                                                    <php>if($info.status==0) echo '未兑换'; else echo '已经兑换';</php>
                                                </div>
                                            </div>
                                            <div id="legend" class="">
                                                <legend class="">活动信息</legend>
                                            </div>
                                            <div class="control-group">
                                                <label class="control-label" for="input01">优惠券</label>
                                                <div class="controls" style="margin-top: 5px;">
                                                    {$info.name}
                                                </div>
                                            </div>
                                            <div class="control-group">
                                                <label class="control-label" for="input01">使用说明</label>
                                                <div class="controls" style="margin-top: 5px;">
                                                    {$info.direction}
                                                </div>
                                            </div>
                                            <div class="control-group">
                                                <label class="control-label" for="input01">活动说明</label>
                                                <div class="controls" style="margin-top: 5px;">
                                                    {$info.activity}
                                                </div>
                                            </div>
                                            <div class="control-group">
                                                <label class="control-label" for="input01">活动开始时间</label>
                                                <div class="controls" style="margin-top: 5px;">
                                                    {:get_date_full($info['begin_time'])}
                                                </div>
                                            </div>
                                            <div class="control-group">
                                                <label class="control-label" for="input01">活动结束时间</label>
                                                <div class="controls" style="margin-top: 5px;">
                                                    {:get_date_full($info['stop_time'])}
                                                </div>
                                            </div>
                                            <div class="control-group">
                                                <label class="control-label" for="input01">活动备注</label>
                                                <div class="controls" style="margin-top: 5px;">
                                                    {$info.remark}
                                                </div>
                                            </div>
                                            <div id="legend" class="">
                                                <legend class="">填写客户信息</legend>
                                            </div>
                                            <div class="control-group">
                                                <label class="control-label" for="input01">用户姓名</label>
                                                <div class="controls">
                                                    <input type="text" placeholder="" class="input-xlarge" name="user_name">
                                                    <p class="help-block"></p>
                                                </div>
                                            </div>

                                            <div class="control-group">
                                                <label class="control-label" for="input01">联系电话</label>
                                                <div class="controls">
                                                    <input type="text" placeholder="" class="input-xlarge" name="user_telephone">
                                                    <p class="help-block"></p>
                                                </div>
                                            </div>

                                            <div class="form-actions">
                                                <input name="id" type="hidden" value="{$info.id}">
                                                <button type="submit" class="btn btn-primary">确认兑换</button>
                                            </div>
                                            <php>}else{
                                                echo '该兑换码不存在或者已经兑换！';
                                                }</php>
                                        </fieldset>
                                    </form>
                                </div>
                                <!--右侧字段区域end-->
                            </div>
                            <!--右侧栏目内容区域end-->
                        </div>

                    </div>
                </div>
                <!--右侧栏目区域end-->
            </div>
            <footer>
                <include file="Public:footer" />
            </footer>
        </div>
    </div>
</div>
</body>
</html>


